package com.zmht.beike.biz.impl;

import java.util.List;

import com.zmht.beike.biz.AimToCollectionBiz;
import com.zmht.beike.core.BaseBizImpl;
import com.zmht.beike.po.TAimtocollection;
import com.zmht.beike.vo.TargetConect;

public class AimToCollectionBizImpl extends BaseBizImpl implements
		AimToCollectionBiz {

	public boolean saveAimToCollection(TAimtocollection collection) {

		try{
			this.getAimToCollectionDAO().saveObj(collection);
		}catch(Exception e){
			return false;
		}
		return true;
	}

	public List<TAimtocollection> findTAimtocollection(Integer teacherId,TargetConect content) {
		String hql = "from TAimtocollection t where t.collectionTeacherId="+teacherId;
		return this.getAimToCollectionDAO().findByHQLObj(hql);
	}

}
